<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>HSF Opcode Definition</title>
</head>
<body bgcolor="#ffffff">
&nbsp;
<center><table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="580" >
<tr>
<td>
      <H2><FONT color=#0000a0 face="arial,helvetica,sans-serif">TKE_Color</FONT></H2>
      <H3><FONT color=#0000a0 face="arial,helvetica,sans-serif">Opcode</FONT><STRONG><FONT face="arial,helvetica,sans-serif">
      <TABLE border=0 height=90 width=530>   
        <TR>
          <TD height=12 width=131>ASCII</TD>
          <TD height=12 width=390>" (double quote)</TD></TR>
        <TR>
          <TD height=12 width=131>Hexadecimal</TD>
          <TD height=12 width=390>22</TD></TR>
        <TR>
          <TD height=12 width=131>Decimal</TD>
          <TD height=12 width=390>34</TD></TR></TABLE></H3>
      <P>&nbsp;</P></FONT></STRONG>
      <H3><FONT color=#0000a0 face="arial,helvetica,sans-serif">Operands </FONT></H3>
      <P><FONT face="Courier New,Courier,typewriter">
	  <STRONG>Variable</STRONG>&nbsp;geometry,
	  <STRONG>Variable</STRONG>&nbsp;channels,<br>
	  <STRONG>[Variable</STRONG>&nbsp;diffuse<STRONG>]</STRONG>,
	  <STRONG>[Variable</STRONG>&nbsp;specular<STRONG>]</STRONG>,
	  <STRONG>[Variable</STRONG>&nbsp;mirror<STRONG>]</STRONG>,
	  <STRONG>[Variable</STRONG>&nbsp;transmission<STRONG>]</STRONG>,
	  <STRONG>[Variable</STRONG>&nbsp;emission<STRONG>]</STRONG>,
	  <STRONG>[Float</STRONG>&nbsp;gloss<STRONG>]</STRONG>,
	  <STRONG>[Float</STRONG>&nbsp;index<STRONG>]</STRONG>,
	  <STRONG>[Variable</STRONG>&nbsp;environment<STRONG>]</STRONG>,
	  <STRONG>[Variable</STRONG>&nbsp;bump<STRONG>]</STRONG>
	  </FONT></P>
      <FONT color=#000060 face="arial,helvetica,sans-serif">
	  Note: all of the optional <strong>Variable</strong> fields are of this format:</FONT>
      <P><FONT face="Courier New,Courier,typewriter">
	  <STRONG>Byte</STRONG>&nbsp;length,<p>
	  &nbsp;if <em>length</em> = 
  
  0:<br>
	  &nbsp;&nbsp;<STRONG>(3)xByte</STRONG>&nbsp;rgb<p>
	  &nbsp;if <em>length</em> &gt; 
  0:<br>
	  &nbsp;&nbsp;<STRONG>(<em>length</em>)xByte</STRONG>&nbsp;string<p>

<FONT face="arial,helvetica,sans-serif">	  
<table BORDER =1 WIDTH="530">
<TR>
    <TD height=21 width=131>geometry</TD>
    <TD height=21 width=390>bitmask of affected geometry. 1 byte, if high bit set a second byte follows.
							bit definitions are <A href="geometry_table.html">here</A></TD>
	</TR>
<TR>
    <TD height=21 width=131>channels</TD>
    <TD height=21 width=390>color components of specified geometry types. 1 byte, if high bit set a second byte follows</TD>
	</TR>
<tr>
	<td WIDTH="131" HEIGHT="21">diffuse</td>
	<td WIDTH="390" HEIGHT="21">basic color of the objects</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">specular</td>
	<td WIDTH="390" HEIGHT="21">color modulation applied to directly reflected lights</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">mirror</td>
	<td WIDTH="390" HEIGHT="21">color modulation applied to indirectly reflected light, such as form an
								environment map or during ray-tracing</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">transmission</td>
	<td WIDTH="390" HEIGHT="21">color modulation applied to light passing through the object</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">emission</td>
	<td WIDTH="390" HEIGHT="21">color supplied directly by the object</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">gloss</td>
	<td WIDTH="390" HEIGHT="21">shininess of the object</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">index</td>
	<td WIDTH="390" HEIGHT="21">index of refraction of the object (may be useful with ray-tracing)</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">environment</td>
	<td WIDTH="390" HEIGHT="21">environment map applied to the object</td>
	</tr>
<tr>
	<td WIDTH="131" HEIGHT="21">bump</td>
	<td WIDTH="390" HEIGHT="21">bump map applied to the object</td>
	</tr>
</table>
 <P>&nbsp;</P></FONT>

<H3><FONT color=#0000a0 face="arial,helvetica,sans-serif">Notes</FONT></H3>
      <P>
      <font face="arial,helvetica,sans-serif">This is the 
      color which will apply to geometry in the currently opened segment/geometry.&nbsp; For detailed information on what this means in the HOOPS/3dGS refer to the <A href="../../Hoops3DGS/ref_manual/cseta_c.htm#st10">Set_Color</a>
	  specification in the 3dGS Reference Manual.
	  </font></P>
      <P><FONT face=arial,helvetica,sans-serif>Most color components may be 
      either a simple RGB triplet (values scaled from 0-255) or a string 
      description (such as "light blue" or "brick"). </FONT></P>

<H4><FONT color=#0000a0 face="arial,helvetica,sans-serif">Channel bits</FONT></H4>
<table BORDER =1 WIDTH="330">
	<TR>
	    <TD height=21 width=50>0001</TD>
	    <TD height=21 width=190>Diffuse</TD>
	</TR>	 	
	<TR>
	    <TD height=21 width=50>0002</TD>
	    <TD height=21 width=190>Specular</TD>
	</TR>	 	
	<TR>
	    <TD height=21 width=50>0004</TD>
	    <TD height=21 width=190>Mirror</TD>
	</TR>	 	
	<TR>
	    <TD height=21 width=50>0008</TD>
	    <TD height=21 width=190>Transmission</TD>
	</TR>	 	
	<TR>
	    <TD height=21 width=50>0010</TD>
	    <TD height=21 width=190>Emission</TD>
	</TR>	 	
	<TR>
	    <TD height=21 width=50>0020</TD>
	    <TD height=21 width=190>Gloss</TD>
	</TR>	 	
	<TR>
	    <TD height=21 width=50>0040</TD>
	    <TD height=21 width=190>Index</TD>
	</TR>	 	
	<TR>
	    <TD height=21 width=50>0080</TD>
	    <TD height=21 width=190>indicates additional byte required</TD>
	</TR>	 	
	<TR>
	    <TD height=21 width=50>0100</TD>
	    <TD height=21 width=190>Environment</TD>
	</TR>	 	
	<TR>
	    <TD height=21 width=50>0200</TD>
	    <TD height=21 width=190>Bump</TD>
	</TR>	 	
</table>
<p>


<hr WIDTH="100%"></FONT>
</td>
</tr>
</table></center>
<script language="JavaScript">
<!--

	function doClick (name) {
		top.frames["logo"].loadByName(name);
	}

//-->
</script>
</body>
</html>
